import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const BASEDATA: AppRouteRecordRaw = {
  path: '/basedata',
  name: 'basedata',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '基础数据',
    requiresAuth: false,
    icon: 'icon-menu',
    order: 2,
  },
  children: [
    {
      path: 'chenjian',
      name: 'BaseDataCj',
      component: () => import('@/views/basedata/chejian/chejian.vue'),
      meta: {
        locale: '加工车间',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'shebei',
      name: 'BaseDataSheBei',
      component: () => import('@/views/basedata/shebei/shebei.vue'),
      meta: {
        locale: '设备管理',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'gongxu',
      name: 'BaseDataGongXu',
      component: () => import('@/views/basedata/gongxu/gongxu.vue'),
      meta: {
        locale: '工序管理',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'gymb',
      name: 'BaseDataGYMB',
      component: () => import('@/views/basedata/gymb/gymb.vue'),
      meta: {
        locale: '工艺路线模板',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
  ],
}
export  default  BASEDATA
